﻿using System;
using System.Collections.Generic;
using System.Text;
using Xms.Core.Context;
using Xms.CRM.Domain;

namespace Xms.CRM
{
    public interface IIntentionStudentService
    {
        Guid Create(IntentionStudent entity);

        bool CreateMany(List<IntentionStudent> entitys);

        bool DeleteById(Guid id);

        bool DeleteById(List<Guid> ids);

        IntentionStudent FindById(Guid id);

        List<IntentionStudent> Query(Func<QueryDescriptor<IntentionStudent>, QueryDescriptor<IntentionStudent>> container);

        PagedList<IntentionStudent> QueryPaged(Func<QueryDescriptor<IntentionStudent>, QueryDescriptor<IntentionStudent>> container);

        bool Update(IntentionStudent entity);

        bool Update(Func<UpdateContext<IntentionStudent>, UpdateContext<IntentionStudent>> context);
    }
}
